import { observer } from "mobx-react";
import Dialog from "..";
import Content from "./content";

@observer
export default class DataSourceDialog extends React.Component {
    render() {
        const { store } = this.props;
        return (
            store.visible ? <Dialog
                dialog={store}
                className="edc-datasource-dialog"
                style={{ height: document.documentElement.clientHeight - 100 }}
            >

                <Content store={store}></Content>
            </Dialog> : null
        )
    }
}